<?php
namespace app\index\controller;

class Article extends Common
{
    public function index()
    {
    	$artid=input('artid');
    	//dump($artid);die;
    	db('article')->where('id',$artid)->setInc('click');
    	$articles=db('article')->find($artid);
    	$article=new \app\index\model\Article();
    	$hotRes=$article->gethotart($articles['cateid']);

    	$this->assign(array(
    		'articles'=>$articles,
    		'hotRes'=>$hotRes,
    		));
        return view('article');
    }
}
